using System.Net;

namespace TechHeadBrothers.Portal.Web.SilverlightStreaming.Commands
{
    public class AddFilesetCommand : FilesetCommand
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="AddFilesetCommand"/> class.
        /// </summary>
        /// <param name="manager">The manager.</param>
        public AddFilesetCommand(SilverlightStreamingManager manager) : base(manager)
        {
        }

        /// <summary>
        /// Configures the HTTP web request to upload a file set.
        /// </summary>
        /// <param name="request">The request.</param>
        protected override void ConfigureHttpWebRequest(HttpWebRequest request)
        {
            request.Method = WebRequestMethods.Http.Put;

            request.ContentType = "application/zip";
        }
    }
}